/* GMImagesPopup.js <?php
#   --------------------------------------------------------------
#   GMImagesPopup.js 2011-01-24 gambio
#   Gambio GmbH
#   http://www.gambio.de
#   Copyright (c) 2011 Gambio GmbH
#   Released under the GNU General Public License (Version 2)
#   [http://www.gnu.org/licenses/gpl-2.0.html]
#   --------------------------------------------------------------
?>*/
/*<?php
if($GLOBALS['coo_debugger']->is_enabled('uncompressed_js') == false)
{
?>*/
function GMImagesPopup(){var current_box_id='';this.open_image=function(products_id,image_number){$('.wrap_shop').append('<div id="images_popup_box"></div>');$('#images_popup_box').css({position:'absolute',left:gmLightBox.centered_left(800)+'px',top:'150px',width:'800px',height:'450px',background:'white'});$('#images_popup_box').load('gm_ajax.php?module=products_images_popup&pID='+products_id+'&imgID='+image_number);gmLightBox.load_box('#images_popup_box');};}
/*<?php
}
else
{
?>*/
function GMImagesPopup()
{
	var current_box_id = '';

	this.open_image = function(products_id, image_number)
	{
		$('.wrap_shop').append('<div id="images_popup_box"></div>');
		$('#images_popup_box').css(
		{
			position: 	'absolute',
			left: 			gmLightBox.centered_left(800) + 'px',
			top: 				'150px',
			width: 			'800px',
			height: 		'450px',
			background: 'white'
		});

		$('#images_popup_box').load('gm_ajax.php?module=products_images_popup&pID='+ products_id +'&imgID='+ image_number);
		gmLightBox.load_box('#images_popup_box');
	}

}
/*<?php
}
?>*/
